#ifndef _UIM_SIMPLE_CAN_H
#define _UIM_SIMPLE_CAN_H

typedef struct _uim_command
{
    unsigned short sid;
    unsigned char tcw;
    unsigned char dlc;
}uim_command;

#define ACT_SID(sid) (((sid&0x1f)<<6)+2)
#define ACT_EID(sid,tcw) (((sid&0x60)<<8) + tcw)

#define ACT_SID_P2G ((0x1f<<6)+3)
#define ACT_EID_P2G(tcw) ((0x1f<<13) + tcw)

#define FILE_NAME "uim_cmd.txt"

#endif